﻿using Engine.Graphics;
using Scenario_Editor.AddinManager;
using System.Collections.Generic;
using System.Windows.Forms;

namespace ModelViewerTabs.TabsForModelviewer
{
    public partial class MaterialListUI : UserControl
    {
        public MaterialListUI()
        {
            InitializeComponent();
        }

        #region Internal Methods

        internal List<int> GetSelectedMaterials()
        {
            var selectedMaterialID = this.materialListSceneryEditor.GetSelectedMaterials();
            return selectedMaterialID;
        }

        internal void SetMaterialManager(MaterialManager materialManager, System.EventArgs p)
        {
            this.materialListSceneryEditor.SetMaterialManager(materialManager, p);
        }

        internal void SetMaterialEditControl(IMaterialEditorControl materialEditControl)
        {
            this.materialListSceneryEditor.SetControlForMaterialEdit(materialEditControl);
        }

        #endregion Internal Methods
    }
}